package com.xqb.modules.domain.po;

import com.xqb.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 优惠券作用范围信息对象 mkt_coupon_scope
 *
 * @author xqb
 * @date 2024-10-15
 */
public class MktCouponScope implements Serializable {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 范围限定类型：1-分类，2-课程，3-机构 */
    @Excel(name = "范围限定类型：1-分类，2-课程，3-机构")
    private Long type;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Long couponId;

    /** 优惠券作用范围的业务id，例如分类id、课程id、机构id */
    @Excel(name = "优惠券作用范围的业务id，例如分类id、课程id、机构id")
    private Long bizId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setBizId(Long bizId) 
    {
        this.bizId = bizId;
    }

    public Long getBizId() 
    {
        return bizId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("couponId", getCouponId())
            .append("bizId", getBizId())
            .toString();
    }
}
